package com.example.goods.service;

import com.example.goods.entity.Goods;

import java.util.List;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 16:10 2019/4/3
 */
public interface GoodsService {
    void publishPost(Goods goods);

    List<Goods> goodsList();

    List<Goods> goodsPaginationList(int offset);

    int goodsListCount();

    Goods selectGoodsDetail(Long goodsId);

    List<Goods> collectGoodsList();

    void publishCollectPost(Goods goods);

    List<Goods> collectGoodsPaginationList(Integer offset);

    int collectGoodsListCount();

    List<Goods> selectGoodsListPage(int offset, int limit);

    int selectGoodsPageCount();

    void publishById(Goods goods);

    void deleteGoods(Goods goods);
}
